import StorageState from '@/utils/storageState'
import { MusicSpectrumShowState } from '@/views/music/MusicSpectrum'

const key = 'musicBasicSettingStore'
const defaultValue = {
  volume: 0.5,
  showNote: false,
  showKeyCode: true,
  musicSpectrumState: 'keyboard' as MusicSpectrumShowState,
  noteVisualzationStyleIndex: 1,
  formatStyleIndex: 0,
}

export const musicBasicSettingStore = new StorageState(key, defaultValue)
